#include <iostream>
#include "common/commonbase.h"
#include "net/server/ServerNet.h"
#include "common/config.h"

using namespace std;

// g++ main.cpp net/server/*.cpp common/config.cpp ../lib/libjsoncpp_static.a /usr/local/mysql/lib/libmysqlclient.a -o xiaoO
// 或者 
// g++ main.cpp net/server/*.cpp common/config.cpp -L../lib/ -ljsoncpp_static -L/usr/local/mysql/lib/ -lmysqlclient -o xiaoO -std=c++11
// allen服务器编译
// g++ main.cpp net/server/*.cpp common/config.cpp -L../lib/ -ljsoncpp_static -L/usr/lib64/mysql/ -lmysqlclient -o xiaoO -std=c++11
// 或者使用vscode自带的编译，详见tasks.json

int main(){
    XIAOO::Config config;
    config.initServerConfig();
    
    XIAOO::ServerNet server;
    server.startUp();

}